package com.recharge.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.recharge.common.result.ResultDO;
import com.recharge.core.entity.GoodsGroupEntity;
import com.recharge.domain.query.GoodsGroupQueryDO;
import com.recharge.domain.vo.GoodsGroupDO;

/**
 * <p>
 * 商品分组 服务类
 * </p>
 *
 * @author reagan
 * @since 2020-08-19
 */
public interface GoodsGroupService extends IService<GoodsGroupEntity> {

    public ResultDO add(GoodsGroupDO domain);

    public ResultDO edit(GoodsGroupDO domain);

    public ResultDO get(String id);

    public ResultDO remove(String id, String modifier);

    public ResultDO find(GoodsGroupQueryDO domain);

    /**
     * 修改商品价格，折扣
     */
    public void updateGoodsPriceTask();

    /**
     * 批量取消关联
     * @param id
     * @param goodsIds
     * @param userName
     * @return
     */
    public ResultDO batchDisassociate(String id, String[] goodsIds, String userName);
}
